-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add kube_pod_host_network #1100
Conversation
Welcome @stamm! |
The use case seems legitimate to me. @brancz do you have any concerns regarding the cardinality of this type of metric? |
internal/store/pod.go
Outdated
{ | ||
LabelKeys: []string{}, | ||
LabelValues: []string{}, | ||
Value: boolFloat64(p.Spec.HostNetwork), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not put this into the kube_pod_info
metric?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, first commit was about adding additional label to kube_pod_info.
If this better, I can revert commits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I think that's better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I just revert commits
But if you want, you can squash on merge
That is useful, thanks @stamm |
lgtm but giving @dgrisonnet and @lilic and or @tariq1890 another chance to review. |
lgtm, thank you @stamm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind just squashing you commits, thanks!
Waiting this feature in next kube-state-metrics release :)
This will be available only in 2.0 release, if you want to help get there faster feel free to pickup any issues marked as v2. 🎉 :) Thanks!
Otherwise 👍 lgtm after squashing commits
Thanks. I've just squashed commits |
Sorry, I squash different commit. Give me some time to restore commits) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: stamm, tariq1890 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it: it adds metric kube_pod_host_network
For example, I need to see metrics for networking bandwidth for pods. But don't want to see a pod with host network, because it show traffic include all node traffic (included all pods traffic on this node)